-
Notifications
You must be signed in to change notification settings - Fork 0
Animations #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animations #9
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis pull request updates project configurations and UI components. In the configuration, previously disabled TypeScript and ESLint error ignoring settings in Changes
Possibly related PRs
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
next.config.jsOops! Something went wrong! :( ESLint: 9.23.0 ESLint couldn't find an eslint.config.(js|mjs|cjs) file. From ESLint v9.0.0, the default configuration file is now eslint.config.js. https://eslint.org/docs/latest/use/configure/migration-guide If you still have problems after following the migration guide, please stop by src/app/page.tsxOops! Something went wrong! :( ESLint: 9.23.0 ESLint couldn't find an eslint.config.(js|mjs|cjs) file. From ESLint v9.0.0, the default configuration file is now eslint.config.js. https://eslint.org/docs/latest/use/configure/migration-guide If you still have problems after following the migration guide, please stop by src/components/ui/starboy-logo.tsxOops! Something went wrong! :( ESLint: 9.23.0 ESLint couldn't find an eslint.config.(js|mjs|cjs) file. From ESLint v9.0.0, the default configuration file is now eslint.config.js. https://eslint.org/docs/latest/use/configure/migration-guide If you still have problems after following the migration guide, please stop by
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
next.config.js (1)
25-30
: Previous environment-specific configuration commented out.The previous configuration only bypassed type checking and linting in development environments, which is generally safer. Consider whether completely removing these checks in production is the right trade-off for your project.
If build performance is crucial, you could compensate for these changes by:
- Adding a pre-push or pre-merge hook that runs full type checking
- Configuring your CI pipeline to run separate type checking and linting steps
- Adding comprehensive tests that catch issues that TypeScript would normally catch
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
next.config.js
(1 hunks)package.json
(3 hunks)src/app/page.tsx
(1 hunks)src/components/ui/footer.tsx
(1 hunks)src/components/ui/next-logo.tsx
(2 hunks)src/components/ui/starboy-logo.tsx
(1 hunks)
🧰 Additional context used
🧬 Code Definitions (1)
src/components/ui/footer.tsx (1)
src/components/ui/next-logo.tsx (1)
NextLogo
(6-21)
🔇 Additional comments (9)
src/components/ui/starboy-logo.tsx (1)
8-8
: LGTM: Padding removal simplifies the logo container.The removal of the
p-3
padding class from the wrapper div creates a cleaner layout for the Starboy logo container. This change aligns with the responsive width adjustments made inpage.tsx
and likely contributes to the overall UI refinement mentioned in the PR.src/components/ui/next-logo.tsx (1)
14-15
: Increased logo dimensions improve visibility.The Next.js logo dimensions have been increased from 150×36 to 180×38, which should enhance its visibility while maintaining proper proportions. This change works well with the new wrapper width constraint (w-36) added in the footer component.
src/components/ui/footer.tsx (1)
15-17
: Width constraint added for NextLogo container.Adding a fixed-width container (w-36 = 9rem) for the NextLogo component provides more consistent sizing across different viewport sizes. This works well with the increased logo dimensions (180×38) and helps maintain the footer's layout integrity.
src/app/page.tsx (1)
8-8
: Simplified responsive width classes for the logo container.Removing the
lg:w-72
class simplifies the responsive behavior by maintaining the logo atw-48
(12rem) on small screens andw-60
(15rem) on medium screens and above. This change, combined with the padding removal in the StarboyLogo component, creates a more consistent layout across different viewport sizes.package.json (4)
2-2
: Project name updated to better reflect repository identity.The project name change from "ssd" to "skywalkersam-dev" provides better alignment with the repository's purpose and URL.
28-28
: Next.js version bump from 15.0.1 to 15.2.3.This minor version update likely includes performance improvements and bug fixes that align with the PR's optimization goals.
44-44
: eslint-config-next version synchronized with Next.js version.Good practice to keep eslint-config-next version in sync with the Next.js version for optimal compatibility.
43-43
:❓ Verification inconclusive
Major ESLint version upgrade from 8.57.0 to 9.23.0.
Be aware that this is a major version update that could potentially introduce breaking changes. Ensure all linting rules still behave as expected.
Since this is a major version upgrade, I recommend reviewing the ESLint v9 migration guide to understand any breaking changes:
🌐 Web query:
What are the breaking changes in ESLint 9.0.0?
💡 Result:
ESLint v9.0.0 introduces significant breaking changes focused on modernizing configurations, improving performance, and enforcing stricter validation. Here are the key updates developers need to address:
Configuration Changes
- Flat config is now default: ESLint's new
eslint.config.js
replaces legacy.eslintrc
files, offering a streamlined array-based structure. TheESLINT_USE_FLAT_CONFIG=false
environment variable is required to temporarily revert to eslintrc[5][6][8].- Deprecated configuration comments: Multiple
/* eslint */
comments for the same rule now trigger errors instead of silently applying the last one[3][4].Removed Features
- Formatters: Only
stylish
,html
,json
, andjson-with-meta
remain in core. Removed formatters likecheckstyle
,junit
, andunix
require standalone packages[1][5][6].- Rules:
valid-jsdoc
andrequire-jsdoc
were removed—useeslint-plugin-jsdoc
instead[1][5][6].- APIs: Deprecated
context
methods (e.g.,getSourceCode()
) andSourceCode#getComments()
were removed in favor ofSourceCode
methods[1][6].Rule and API Changes
- Function-style rules deprecated: Rules must export objects with
create()
method instead of functions[1][6].- Strict schema validation: Rules without
meta.schema
now default to[]
, rejecting any options[1][6].- New
no-useless-assignment
rule: Catches unused variable assignments[1].let id = 1234; // Flagged by no-useless-assignment id = calculateId();CLI and Formatter Updates
--output-file
behavior: Always creates a file (empty when no issues)[1][4].--quiet
optimization: Skips executing"warn"
-level rules entirely for performance[5][6].Stricter Validations
- RuleTester enhancements:
- Suggestions must modify code output
- Messages require complete placeholders
- Test cases need unique suggestion messages[1][9]
- Scope analysis fixes: Corrected handling of strict mode directives and class
extends
scoping[1].Compatibility Notes
eslint:recommended
updated: Includes new rules while removing deprecated ones[1][5].- Vue.js migration: Requires explicit
eslint.config.js
setup with@eslint/js
and@vue/eslint-config-prettier
[8].Developers should consult ESLint's migration guide[4] and test configurations thoroughly. The changes emphasize forward compatibility, with ESLint 10 expected to remove eslintrc entirely[8].
Citations:
- 1: https://eslint.org/blog/2024/04/eslint-v9.0.0-released/
- 2: https://eslint.org/blog/2024/03/eslint-v9.0.0-rc.0-released/
- 3: https://eslint.org/blog/2024/03/eslint-v9.0.0-beta.2-released/
- 4: https://eslint.org/docs/latest/use/migrate-to-9.0.0
- 5: https://eslint.org/blog/2023/12/eslint-v9.0.0-alpha.0-released/
- 6: https://eslint.org/blog/2023/11/whats-coming-in-eslint-9.0.0/
- 7: https://github.com/eslint/eslint/releases
- 8: https://vueschool.io/articles/vuejs-tutorials/upgrading-eslint-from-v8-to-v9-in-vue-js/
- 9: https://eslint.org/blog/2024/02/eslint-v9.0.0-beta.0-released/
- 10: https://www.npmjs.com/package/eslint/v/9.0.0
- 11: https://github.com/eslint/eslint/blob/main/CHANGELOG.md
- 12: ESLint v9 contains breaking API changes jsx-eslint/eslint-plugin-react#3699
ACTION REQUIRED: Verify ESLint Configuration Adjustments After Upgrade
We have upgraded ESLint from v8.57.0 to v9.23.0 in package.json. This major update introduces several breaking changes that could impact your project’s linting setup. Please review the following key points:
Configuration Changes:
ESLint v9 now defaults to a flat configuration usingeslint.config.js
. If your project still relies on legacy.eslintrc
files, you may need to setESLINT_USE_FLAT_CONFIG=false
or migrate to the new configuration format.Rule and API Updates:
Some rules (e.g., removal ofvalid-jsdoc
andrequire-jsdoc
) and API methods have been deprecated or removed. Verify that your custom rules and lint configurations meet the updated requirements (such as exporting an object with acreate()
method).CLI and Formatter Adjustments:
There are updates to CLI behaviors (like the handling of--output-file
and--quiet
flags) and removals of some built-in formatters. Double-check that any scripts or integrations relying on specific CLI outputs still function as expected.For a complete list of breaking changes, please consult the ESLint v9 migration guide.
next.config.js (1)
20-22
: Consider the trade-offs of ignoring TypeScript and ESLint errors in all environments.While ignoring TypeScript and ESLint errors will reduce build times, it also removes important safety checks, especially in production builds. This could potentially allow type errors and linting issues to reach production.
Consider these alternatives:
- Return to the environment-specific approach (only ignore in development)
- Keep these settings but ensure CI pipeline includes separate type checking and linting steps
- // For reducing build times and build errors.) + // For reducing build times (but consider re-enabling checks for production) typescript: { ignoreBuildErrors: true }, eslint: { ignoreDuringBuilds: true },
Minor optimizations
Summary by CodeRabbit
Chores
Style